#!/usr/bin/env bash

# License: CC0; No attribution needed

echo ''
echo ' A script to format instance URLs for Privacy Redirect browser addon'
echo ' -------------------------------------------------------------------'
echo ' It just takes a bunch of URLs in each line as input and basically adds'
echo " comma in between. Empty lines in input will be stripped out too!"
echo ''
echo '=> Enter the instance urls (press ctrl+d when done inputting) :'

read -r -d $'\04' input

echo ''
echo "=> Paste the following in Privacy Redirect input:"

echo $input | tr ' ' ','
